home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
editor
/
edt10.lha
/
Beispiele
/
LayoutWindows.edt
< prev
next >
Wrap
Text File
|
1995-02-28
|
567b
|
26 lines
/* layout windows */
OPTIONS RESULTS
'Get' SCREENHEIGHT
screenHeight=RESULT-11
'Get' SCREENWIDTH
screenWidth=RESULT
'Get' WINDOWS
numWindows=RESULT
vw=numWindows
IF numWindows > 4 THEN vw=2
IF numWindows > 9 THEN vw=3
IF numWindows > 16 THEN vw=4
IF numWindows > 25 THEN vw=5
windowHeight=screenHeight%vw
windowWidth=screenWidth%((numWindows+vw-1)%vw)
'Get' WINDOWID
thisWindow=RESULT
'FirstWindow'
DO i=0 TO numWindows-1
'SetWindowBox' i%vw*windowWidth i//vw*windowHeight+14 windowWidth windowHeight
'NextWindow'
END
'SelectWindow' thisWindow
'WindowToFront'